package com.meiyue.locallibs.websocket;

import com.meiyue.library.utils.MsgUtils;
import org.springframework.util.concurrent.ListenableFuture;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.WebSocketHttpHeaders;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.client.WebSocketClient;

import java.net.URI;

/**
 * MeiyueJavaProject
 * com.meiyue.locallibs.websocket
 * Created by Chris Chen
 * 2017/9/17
 * Explain:
 */
//@ClientEndpoint
//@Component
public class MyWsClient{

    //@OnOpen
    public void onOpen() {
        MsgUtils.println("连接成功");
    }

    //@OnClose
    public void onClose() {

    }

    //@OnMessage
    public void onMessage(String message) {

    }

    //@OnError
    public void onError() {

    }

    private void sendMessage(String message) {

    }
}
